﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "complaints", DisableSyncStructure = true)]
	public partial class Complaints {

		/// <summary>
		/// 编号
		/// </summary>
		[JsonProperty, Column(Name = "C_Id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int CId { get; set; }

		/// <summary>
		/// 申请状态（0未撤销，1撤销）
		/// </summary>
		[JsonProperty, Column(Name = "C_Application", DbType = "int")]
		public int? CApplication { get; set; }

		/// <summary>
		/// 所属小区 
		/// </summary>
		[JsonProperty, Column(Name = "C_Cell_Id", DbType = "int")]
		public int? CCellId { get; set; }

		/// <summary>
		/// 投诉时间
		/// </summary>
		[JsonProperty, Column(Name = "C_CreatTime", DbType = "datetime")]
		public DateTime? CCreatTime { get; set; }

		/// <summary>
		/// 是否匿名(0未匿名，1匿名)
		/// </summary>
		[JsonProperty, Column(Name = "C_IsMagic", DbType = "int")]
		public int? CIsMagic { get; set; }

		/// <summary>
		/// 投诉内容
		/// </summary>
		[JsonProperty, Column(Name = "C_Text")]
		public string CText { get; set; }

		/// <summary>
		/// 投诉标题
		/// </summary>
		[JsonProperty, Column(Name = "C_Title")]
		public string CTitle { get; set; }

		/// <summary>
		/// 用户编号
		/// </summary>
		[JsonProperty, Column(Name = "C_UserId", DbType = "int")]
		public int? CUserId { get; set; }

	}

}
